react native flatlist styled height fit content

64

// adding flexGrow: 0 to the flatList style worked for me, 
// so it will be:

flex-grow: 0;
// or
flatList: {
  flexGrow: 0
}

Comments

Submit
0 Comments